package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "营销活动")
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatMarketingActivitiesRestFeign {

    /**
     * 促销详情
     * @param productId
     * @param custId
     * @return
     */
    @ApiOperation("促销详情")
    @GetMapping("/wechat/marketingactivities/marketingactivities")
    String ajaxHotActivity(@RequestParam("productId") String productId, @RequestParam("custId")  Long custId);

    /**
     * 购物车_常购清单
     * @param productId
     * @return
     */
    @ApiOperation("购物车_常购清单")
    @PostMapping("/wechat/marketingactivities/marketingactivitieslist")
    String marketingActivitiesList(@RequestParam("productId") String productId);

}
